'''
Description: 
Version: 2.0
Autor: zyw
Date: 2021-12-31 14:25:20
LastEditors: zyw
LastEditTime: 2022-03-04 15:14:29
'''
from selenium.webdriver.remote.webdriver import WebDriver
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.by import By

class HomePage:
    
    def __init__(self,driver:WebDriver):
        self.driver = driver
        
    def is_login_success(self):
        try:
            self.driver.find_element(By.XPATH,'//div[@class="margin_r0020 el-dropdown"]//span')
        except:
            res = "登陆失败"
        else:
            res = "登陆成功"
        return res
    
    
